home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / RKMLibsPrgs / samplelibrary / sampleinclude / samplebase.h < prev    next >
C/C++ Source or Header  |  1992-09-03  |  2KB  |  54 lines

  1. /* samplebase.h -- C include file defining sample.library base
  2.  
  3.  
  4. Copyright (c) 1992 Commodore-Amiga, Inc.
  5.  
  6. This example is provided in electronic form by Commodore-Amiga, Inc. for
  7. use with the "Amiga ROM Kernel Reference Manual: Libraries", 3rd Edition,
  8. published by Addison-Wesley (ISBN 0-201-56774-1).
  9.  
  10. The "Amiga ROM Kernel Reference Manual: Libraries" contains additional
  11. information on the correct usage of the techniques and operating system
  12. functions presented in these examples.  The source and executable code
  13. of these examples may only be distributed in free electronic form, via
  14. bulletin board or as part of a fully non-commercial and freely
  15. redistributable diskette.  Both the source and executable code (including
  16. comments) must be included, without modification, in any copy.  This
  17. example may not be published in printed form or distributed with any
  18. commercial product.  However, the programming techniques and support
  19. routines set forth in these examples may be used in the development
  20. of original executable software products for Commodore Amiga computers.
  21.  
  22. All other rights reserved.
  23.  
  24. This example is provided "as-is" and is subject to change; no
  25. warranties are made.  All use is at your own risk. No liability or
  26. responsibility is assumed.
  27. */
  28.  
  29. #ifndef SAMPLE_BASE_H
  30. #define SAMPLE_BASE_H
  31.  
  32. #ifndef  EXEC_TYPES_H
  33. #include  <exec/types.h>
  34. #endif   EXEC_TYPES_H
  35.  
  36. #ifndef  EXEC_LIBRARIES_H
  37. #include <exec/libraries.h>
  38. #endif   EXEC_LIBRARIES_H
  39.  
  40. /* library data structures-- Note that the library base begins with a library node */
  41.  
  42. struct SampleBase {
  43.    struct Library LibNode;
  44.    UBYTE  Flags;
  45.    UBYTE  pad;
  46.    /* We are now longword aligned */
  47.    ULONG  SysLib;
  48.    ULONG  DosLib;
  49.    ULONG  SegList;
  50.    };
  51.  
  52. #define SAMPLENAME   "sample.library"
  53.  
  54. #endif  /* SAMPLE_BASE_H */